﻿using LPLS.Commons.Enums;
using LPLS.DBEntities.OEEModule.OEEModels.TimeUtilizationModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPLS.DBInterface.OEEModule.OEEModels.TimeUtilizationModels
{
    public  interface ITimeUtilizationRateConfigService : IDBBaseInterface
    {

        /// <summary>
        /// 获取Data
        /// </summary>
        /// <param name="deviceid"></param>
        /// <param name="compentType"></param>
        /// <returns></returns>
        List<TimeUtilizationRateConfig> GetData( Guid deviceid, DeviceComponentTypeEnum compentType);
        /// <summary>
        /// 更新数据
        /// </summary>
        /// <param name="li"></param>
        /// <returns></returns>
        int UpdataData(List<TimeUtilizationRateConfig> li);
        /// <summary>
        /// 添加数据
        /// </summary>
        /// <param name="li"></param>
        /// <returns></returns>
     
        /// <summary>
        /// 添加数据  添加数据之前需要先删除掉之前的数据 然再在添加新的数据
        /// 
        /// </summary>
        /// <param name="li"></param>
        /// <param name="deviceid"></param>
        /// <returns></returns>
        int AddData(List<TimeUtilizationRateConfig> li, Guid deviceid,int type, DeviceComponentTypeEnum compentenum);

    }
}
